<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='animate.min.css') }}">
    <title>图像生成服务</title>
</head>
<header>
    <div class="hub__navbar" style="display: flex;justify-content: space-between;">
        <a class="logo" href="/" style="margin:68px 0 0 20px;font-size: 38px;"><img src="../static/images/logo.png"
                height="88" width="88" style="margin-right: 20px;" alt="">湖南涉外经济学院</a>
        <div style="display: flex;margin: 20px 20px -20px 0;">
            <a class="hub__nav__link" href="koutu" style="font-size: 26px !important;">抠图服务</a>
            <a class="hub__nav__link" href="zhengjianzhao" style="font-size: 26px !important;">证件照服务</a>
            <a class="hub__nav__link" href="yanzhi" style="font-size: 26px !important;">颜值服务</a>
            <a class="hub__nav__link" href="ocr" style="font-size: 26px !important;">OCR服务</a>
            <a class="hub__nav__link active" href="ernie_vilg" style="font-size: 26px !important;">图像生成服务</a>
        </div>
    </div>
</header>

<body >
    <main class="">
        <div class="hub__container d-f x-center y-center" style="margin-top: -75px;">
            <div class="banner animate__animated animate__slideInUp">
                <p><img src="../static/images/logo1.png" height="168" width="168" alt=""></p>
                <h1 style="font-weight: bold;font-size: 108px;">图像生成服务</h1>
                <h2 style="line-height: 1.5;">你可以输入图像描述，自动生成画作，计算时间较长请耐心等待</h2>
                <form id="myform" class="d-f x-center" action="" enctype='multipart/form-data' method='POST' style="line-height:1;margin-top: 20px;">
                    <input type="text" style="width:240px;height: 42px;" class="input" name="describe" id="describe" placeholder="请输入描述文字" value="">
                    <select class="select" style="margin-right: 10px;" name="selected_number">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                    </select>
                    <select class="select" style="margin-right: 10px;" name="selected_color">
                        <option value="探索无限">探索无限</option>
                        <option value="古风">古风</option>
                        <option value="二次元">二次元</option>
                        <option value="写实风格">写实风格</option>
                        <option value="low poly">low poly</option>
                        <option value="未来主义">未来主义</option>
                        <option value="像素风格">像素风格</option>
                        <option value="概念艺术">概念艺术</option>
                        <option value="赛博朋克">赛博朋克</option>
                        <option value="洛丽塔风格">洛丽塔风格</option>
                        <option value="巴洛克风格">巴洛克风格</option>
                        <option value="超现实主义">超现实主义</option>
                        <option value="水彩画">水彩画</option>
                        <option value="蒸汽波艺术">蒸汽波艺术</option>
                        <option value="油画">油画</option>
                        <option value="卡通画">卡通画</option>
                    </select>
                    <div class="start mx-0" onclick="submitInput()">START</div>
                </form>

            </div>
        </div>
        <div class="d-n" id="result">
            <div class="imgbox">
                <a href='static/images/target/result_0.png' download="mypic.jpg">
                    <img class="col-md-6 img-responsive  img-thumbnail" src="{{ sourcefile0 }}"
                         alt="" width="50%"/>
                </a>
                <a href='static/images/target/result_1.png' download="mypic.jpg">
                    <img class="col-md-6 img-responsive  img-thumbnail" src="{{ sourcefile1 }}"
                         alt="" width="50%"/>
                </a>
                <a href='static/images/target/result_2.png' download="mypic.jpg">
                    <img class="col-md-6 img-responsive  img-thumbnail" src="{{ sourcefile2 }}"
                         alt="" width="50%"/>
                </a>
                <a href='static/images/target/result_3.png' download="mypic.jpg">
                    <img class="col-md-6 img-responsive  img-thumbnail" src="{{ sourcefile3 }}"
                         alt="" width="50%"/>
                </a>
                <a href='static/images/target/result_4.png' download="mypic.jpg">
                    <img class="col-md-6 img-responsive  img-thumbnail" src="{{ sourcefile4 }}"
                         alt="" width="50%"/>
                </a>
                <a href='static/images/target/result_5.png' download="mypic.jpg">
                    <img class="col-md-6 img-responsive  img-thumbnail" src="{{ sourcefile5 }}"
                         alt="" width="50%"/>
                </a>
            </div>
        </div>
        <footer>
            <p class="animate__animated " style="font-size: 24px;">author: <strong>湖南涉外经济学院信息与机电工程学院</strong></p>
            <div id="gotop">
                <img src="../static/images/arrow-up.png" alt="">
            </div>
        </footer>
    </main>
    <script src="../static/index.js"></script>
    {% extends "bootstrap/base.html" %}
    {% block content %} {% endblock %}
    {% block myjs %} {% endblock %}
</body>

</html>